package sk.ogame.realm.utils;

/**
 * @author 支绍昆
 * 2023/3/6
 * 时间工具
 **/
public class TimeUtil {

    public static boolean inPeriod(Integer time) {
        return (now() - time) < 300;
    }

    public static int now() {
        return (int) (System.currentTimeMillis() / 1000);
    }
}
